package com.system.training.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.system.training.entity.Training;


public interface ITrainingService {
	public void saveOrUpdate(Training training);
	public void delete(Training training);
	public Training findOne(Long id);
	public List<Training> findAll();
	public void delete(List<Long> ids);
	
	//动态条件查询
	public Page<Training> findAll(Specification<Training> spec, Pageable pageable);
}
